package VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.QLST.Controller;

import java.sql.Connection;
import java.sql.SQLException;

import VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.QLST.Entity.UserEntity;
import VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.QLST.Models.LoginModels;

	public class LoginController {
	private LoginModels m_objModels;
	public LoginController(Connection objConnection){
	m_objModels = new LoginModels(objConnection);
	}

	public boolean CheckUser(UserEntity objUser){
		boolean bResult = false;
	try{
		bResult= m_objModels.CheckElement(objUser);
	} catch(SQLException e){
		e.printStackTrace();
	}
	return bResult;
	}
	}
